//引入封装好的 get post方法
import {get,post} from './http'

//封装注册
export const register = data=>post('/api/register',data)
//封装登录
export const login = data=>post('/api/login',data)
//封装首页商品
export const getIndexGoods = ()=>get('/api/getindexgoods')